package com.hibase.core.page.entity.modulexml;


import com.hibase.core.page.entity.modulexml.vo.ModuleShowColumnVO;
import com.hibase.core.page.entity.window.ParamXmlVo;
import lombok.Data;

import java.util.List;

/**
 * 描述:
 *
 * @author li-wei-hua
 * @date 2021-04-15 10:37
 */
@Data
public class ModuleVO {

    private String type;

    private String dataIndex;

    private String title;

    private Boolean hidden;

    private Boolean readyOnly;

    private Boolean required;

    private String verify;

    private String format;

    private String param;

    private String key;

    private String value;

    private String requestUrl;

    /**
     * 最大值（用于数字输入框）
     */
    private Integer max;
    
    /**
     * 最小值（用于数字输入框）
     */
    private Integer min;

    /**
     * 精确度（用于数字输入框）
     * <p>
     * 示例0：整数，1 保留一位小数
     */
    private Integer precision;

    private Integer rows;

    private Integer row;

    private Integer col;

    private Integer span;

    private List<ModuleShowColumnVO> columns;

    private String selectValue;

    private String fileBizType;

    private List<ModuleChildrenXmlVo> childrens;

    private List<ParamXmlVo> params;

    private String enumType;

    private String showName;

    private Integer maxLength;

    private String defaultValue;

    private String startTime;

    private String endTime;

    private List<ModuleOptionXmlVO> options;

    private String placeholder;

    private Boolean multi;

    /**
     * 多选tag最大长度
     */
    private Integer maxTagCount;

    private String paramsKey;

    /**
     * ADD/EDIT
     */
    private String operType;

    /**
     * 对应dataIndex
     */
    private String index;

    /**
     * 加减乘除 calcValue="item.code + item.name"
     */
    private String calcValue;

    /**
     * 事件 根据showRule条件触发是否显示或者隐藏 showRule="item.code !== ''"
     */
    private String showRule;

    /**
     * 事件操作
     */
    private ModuleUIEventsXmlVo uiEvents;

    /**
     * 图标类型(VNode,slot)
     */
    private String icon;

    /**
     * 头像的形状（circle,square） }
     */
    private String shape;

    /**
     * 头像的大小(large,small,default)
     */
    private String size;
}
